package com.cf.moudle.newsfeed.mvp.view;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.cf.base.comm.base.BaseMvpActivity;
import com.cf.base.mvp.mvp.annotation.Presenter;
import com.cf.moudle.newsfeed.mvp.contracts.MainContract;
import com.cf.moudle.newsfeed.mvp.presenter.MainPresenter;

/**
 * @author yangji
 */
@Presenter(MainPresenter.class)
public class MainView extends BaseMvpActivity<MainContract.Presenter> implements MainContract.View {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getPresenter().requestLogin("admin", "123456");
    }

    @Override
    public void loginSuccess() {
        System.out.println("登录成功");
    }

    @Override
    public void loginFailed() {
        System.out.println("登录失败");
    }

    public void showDialog(String msg) {

    }
}
